package com.syq.event;

import lombok.Data;
import lombok.ToString;
import org.springframework.stereotype.Component;

/**
 * @author Sun Yueqi
 * @version 1.00
 * @time 2022/5/26 10:53
 */
@Data
@ToString
public class LoginEvent {
    private LoginType type;

    private String username;

    public LoginEvent(LoginType type, String username) {
        this.type = type;
        this.username = username;
    }

    public enum  LoginType{
        SUCCESS,FAIL
    }
}


